improved database accesses