Replaced SQL connection for sqlite tests