basic db connection now working