Updated migrations to support multiple databases.