refactor create and edit to lib module
remove count column from todos table
refactored index to reduce database queries
refactor model, controller and whatnot