Compile fixes, also made databases default construct-able as we delete at session end anyhow. This allows us to better cope with policies and handling of action structs.