I fixed some DB problems and LP looks fixed. So I tagged v0.1.1. If you're running a version which is moderately newish this is probably what you want to use.
I think you introduced a new one, though.
Whenever BH writes to database, no further submitted shares are updated, or if they are they're not showing up on the webpage.
Example starting with no database.
Before first "writing to database" user shares are updated for pool 1. As soon as the message shows up, user shares stay static.
Switching to pool 2, the same behaviour is evident. User shares for pool 2 updates up till the point that changes are written to the database, and then stay static.
Stales are still updating though, and as far as I can tell it has no impact on performance.