switch database to postgres & install devise