added local database into the app