Modified Version of victorstanciu's "dbv.php"