Added local database

Database is no longer in memory