Merge pull request #759 from MrPetovan/task/move-dbstructure-to-php