Implemented SQLite logging of chunk population density