postgresql Build scala database config and sql remove.