[MOD] Modified handling of sqlite