common middle-level sql client.