Began implementing database functionality