adding timestamp
db pointer + correct types
support for all of the types