updating database calls