add support for locally hosted api

set USE_LOCAL to check against local version of database. assumes port
3000 is receiving requests