migrate database if it already exists