updates to db sql