refactoring
added database driver