use sqlite only in development and test mode and postgress on production