Adds method selectAll in database.php