added semicolons around database stuff