Fixed database migrations executed out of order