fix namespace
fix problem with database
updated example