[ADD] add bwl_close_database function
[ADD] add file comment