Fix database config
Update migrations