Basic db access added