Fix mysql driver, and database class update

Signed-off-by: Arief M Utama <arief.utama@gmail.com>