Simple db access wrapper