Create functions to abstract the dblink function