Fixing Sqlite %s issue