SQLWrapper now uses prepared statements

Also small code improvements and updates
Plus many bugs fixed with tags/string containinig " or '