- Implemented basic db functionality.