Implements listener, and really finish implementing database