Try it the other way around:

class database extends mysqli implements databaseInterface { ...}

This should work.