basic db access added