Database seems to be working fine for both SQLite and MySQL now.