Update database.php

Updated to use APP_NAME.