updated db access