Added custom linkDatabase