Began work on database functionality