added compilation directive for mysql and sqlite databases