Added support for compound primary keys (#149)