Abstract db into one class.
add ignore files.