Added a database sample

+ added a database sample for the pin storage