reorganize logging and database setup
add rspec
add steps test