added example db access