[sqlite] Fixed detection of composite primary keys [closes #4]