Fix data storage type to be compatible with both MySQL and SQLite