store full input in database rather than just stripped loc data