Update class.database.php

Fixed Single Insert Bug