Repaced sqlitedb with pgsql.