Database library for PHPixie