fixed _bottle_types_db not defined