Elements rendering
Query freeing in Database destructor