Implemented EAV model for MariaDB.

This model allows us to add arbitrary, type-safe key-value pairs while
still providing the power of a relational database. The code is tested
on the command line.