Fixed bug where _primaryKeys was not initialized to array() before schema is analyzed.
Changed the loadSchemata into loadSchema that only loads table data on demand instead of every table on every instantiation of DatabaseHandler.