Reverting back to mongodb as firebase doesn't allow for queries, hence abandoned it for now