fixed database.php inclusion and added timezone