Some changes in SQLite and PostGre