fixed bug
https://github.com/Ylvakiller/DatabasesFinalAssignment/issues/6