Working on model controller logic. DB structure.sql updated.