added web API and separated db access
updated requirements
updated README with requirements and usage