You'll have to define Database::connect() before operating with models