Add generic database configuration.
Updated .gitignore.