saving request to the database