Web API added, minor db changes