Actually use the database method in the constructor