added name cat to facilities

initial to get branch set up more to come
added indexes

to all except users which already had them
documents table

string :category
string :title
index :title
string :path
date :expiration
Assoc

Small change to documents table, created associations between  users and
all other tables.
Added associations between tables
Merge remote-tracking branch 'origin/db-updates'