db: pass &foo type parameter information to called functions