Added doc comments to the 'update layout item' method
Updated methods to make sure that all GET/POST data is DB safe