Fix up SQL issues, remove requirement of one configuration per backend type