append ! to command definitions lacking it, reconnect on error, fix unqiue row constraint error