finished logic, need to connect interface with handlers and db