split sqlite3 and pg into different group