Added sqlite and logging to contact form handler.