Updated installation

Plugin installation now keeps old versions of comms table (renames old and creates new)
Also added foreign keys to comms table