add rspec to insert_user and insert_prob, and add check_params to db.rb