Sqlite and PG Fix