further db functionality