added register mysql procedure
added register endpoint (we need to reset db tables after this)
Merge branch 'feature/register_endpoint' into develop