Completed problem insertion in database