Fix DB close issue; change script service structure's data types to int (to avoid negative values)