use a database to generate reflections