Basic database interfaceing now works