Categories talking to db

Change name of db and such accordingly