modified the schema of the database for mysql. fixing #8