Implemented auth, db config, setup routes