Final changes to db