updated CLI and View\Page to use the same conversion method
updated database to handle joins, added docblocks, updated code to use new db methods
fixed list_post() query