add initDB, clearDB; put placeholder for handling send errors