add unique indexes

to keep things clean
fix partial case sensitivity of networks

fixes #45