fixed local db connection