Fix int in sqlite3 vs string in PostgreSQL