Created init method to allow multiple extensions of q_db class.