migrate when starting server