making it such that the database method can be called as 'database', '...::database', or '...->database'.