Some pre-database fixes for decimal fields
Added security test