add connection, implement index and create actions