Started on a SQL wrapper

Also converted an old thing into throwable_wrapper