added some SQLerror chcking considering doing some ajustmants pushbuttens