Fix EChequeServer and add prepared statements for db

Add DB method to allow for usage of prepared statements, fix EChequeServer to use prepared statements