You will need to re-eastblish the database and re-run the setup program to recover from this. Of course, anything that was saved in the database will be gone unless you managed to make a backup before you deleted the entries.
Just out of curiosity, how did you manage to delete the database? Certainly not via Zenphoto I presume.