Adding local db
-Started on offline support