add examples directory
add database support (preliminary)