added db to df functions