Frontend: prototype

For test, You must insert some rows in `works` table.
I'll change variable `res` to another name like `document`. I can't think better name. :'(