Finish updating database