new question correctly inserts user id into database