[1.5.4] [Refactor] db connection and operations outsourced (PG*, RU*)