Added additional db functionality