Fix ssl config, db migrate for prod