added safety checks for bad values in eftpos + atms

Signed-off-by: Cael_Aislinn <cael_aislinn@yahoo.com.au>
resolved a MySQL statement issue

Signed-off-by: Cael_Aislinn <cael_aislinn@yahoo.com.au>