require, not include
lockdb info in header
fix some indentation