Separate elements in to separate files.
Add Database type setting and validation.