Perform db sync and migrations on service startup.