That was pretty much it, though I never did manage to get the path right, but as the DB was in the same folder as the html/cdml pages I stopped trying and just got rid of the path altogether, which worked. Now if I could only get the access privileges sorted so it actually creates a new record....
Thanks for the help, very much appreciated!