corrected bugs
Merge pull request #32 from MOHAX239/master

поправил баги в БД