remove dbconn from function call