move controller in mysql setup
update readme
move functins around in main
check error returned by service registration
add tests for database, lifecycle, and logging