require("database.php") and session_start() with requiring common.php. 
Let's put all initialization code and common functions in common.php, and just include it everywhere