add database layer
Merge https://github.com/TakahikoYoshii/DatabaseSample
add xml