Add group API method for mysql, sqlite3, postgres