changed db provider

use postgresql if in development environment, stick with sqlite3
othewise