Scaffold user reource and fix db.