add Database class. Test Main class.
add Database class. Test Main class.