Implement install
Database now uses cache for queries