modify database connection infomation.
initial version of models.
rearrange and comments.
add indexes

add indexes for activities and tags/categories pivot tables.
update models.
Merge branch 'database-and-models'