Update database.php

Included Database select statement in connect() function.