refactor actions again
add missing test for Database#setup
fix the execution context of custom actions
ensure the line buffer is always cleared before the handler is called