Sqlite in dev, postgres in prod
Add lock