got db access working