getting rid of sqlite and using pg