more changes to add the database objet on the request