Fixing initial database migration bug