Hammer out a quick api from a db