makes insert observation work and link to the database