Added simple db access