get database linked correctly
get database linked correctly