Change code to connect to early version of database