Simple modification to be compatible with Chef Solo

node.save should not happen with Chef Solo, so I added a simple verification before a node.save call in both mysql and postgresql recipes.