generic db access
style change