made db_call working with multiple clauses