corrected local db problem