Added better mysql handling. Added new soldat script