Local DB extension

Replace AJAX calls to remote server with queries to client-side memory
database.