repair the db completely
add devise system for user management