Local db

Code Review