fixed database issue - amend losing enduser details