removed sqlite and used pg