db generation and measurements