fixed pointer to database, should be db_report rather than the local db