minor db access changes