working reference to database on index