report: Add datatype function to report database