Firebase is pretty cool and really easy to get up and running with, but I'd still be hesitant to use it in any serious production application (they were acquired by Google not too long ago, and it's not crazy to think a similar situation may arise there). Apache CouchDB would be my bet.