Moved mysqli connection logic into init() method and updated documentation.