Added makesite support for generalized xataface db functions.
Some changes to makesite to support mysqli