additional db functionality