Updates to db tables