debugged database migrations