Allow bitwise
Don't close database until module list has been updated