added simple database registry and query example