Fix import of db_structure in Flask