added classes + implemented settings database