Add database structure

Signed-off-by: Takashiro <takashiro@qq.com>
Move image directory into view

Signed-off-by: Takashiro <takashiro@qq.com>