Preparing database migration