Moved database update out of start for web server