Impelemented database migrations