Changed config/database.php to use constants. Added way generator.