per l'invio prova cosi:

<form name="ricerca" onsubmit="ceckDatabase(); return false;" >