Function to pointer in db.c [master]

This functionality will be used and externed (maybe) on other modules of
the project.