Added support for mongoDB with some basic insert / query functions for login