change: fixed local database query bug