Fixing foreign key reference in the DB

signed-off-by: Thiago Kenji Okada <thiago.mast3r@gmail.com>