DB bug fix
add Repository class
remove DatabaseManager class
add comment