Update database.php

updated to use mysqli