Actually deal with ze database