modified database config
add test for events controller.