beginnings of database stuff