Score table now populated, bugfixes

- images no longer come up for processing multiple times
- DB uses proper trigger to create rows on state change