added initial database functionality