Update class.db.php

Use the filter function to filter any data coming from the outside world.