* moved db location
added missing foreign key relationships