routes for server and for db
adding state templates for send & receive
merging sendstate
Merge branch 'servertodb'