Changed database initialization code.

All sources are now automatically attached.