added postgres database and model