invite db functionality