lock database access
remove debug info