Beginnings of a SQL handler