added basic db functionality