Added database instances and corrected bugs in pages format