added initial database stuff