simple database logging and referencing is working