changed local db access call