Added: __sleep function and setDatabase() to fix serialize errors