Committing generic implementation for SELECT query