fixed a mongodb error preventing users from registering
cleaned up some unused files