logic mostly complete, need to fill in db and make it pretty