changing database from squilite3 to postgresql