changed db to pg instead due to sqlite3 asking encoding method for uploaded file
added controller for adding attachment
added instruction for adding attachment