changes database from sqlitw3 to postgresql

yuuuup