db: fix function signatures for pointers