You should consider introducing tests for the Sqlite class in order to be able to find such errors way more easy ;)