Update database.php

Redeclaration of variables rendered the class useless.