Adding Add event basic code and db basic connection code.