elimineted second run for database