Imlement conn, queryer and rows interface