Created a new class PulsarArchiveDB which inherits from MysqlDB and contains functions for interaction with the database. Added code to index.php to use this class.