Put the database into a class ivar. Heinous.