working prototype v0.1

need to change the database design --> might be a disaster when change
entity table's relationships