SQL for join tables is implemented in one method. but the database still
does not work as foreign key constrains.