Added abstraction for mysql

According to /db-dump.sql