Auto migrate database on start