database: fix foreign key test

- ede: add new personal directory to path
- cmake: add eos and odb directories to include and library paths
- cmake: do not hard code link libraries, use variables instead