Everything done before adding new database elements