Update database.php

Added $numRows and $lastID variables to get number of rows in previous select function and mysqli_insert_ID() from last insert function.