create model picture and config database with posgres