fully fix non-replay of connections from another client
add unique indexes

to keep things clean
fix partial case sensitivity of networks

fixes #45
support for batch extension