mongo db integration. not yet properly working
saves and loads from db