local db
updated to use local database