add directory
add sink
fix usage of derby.run
make messages query based on time instead of limit