Ryan's stemming fixed, some exceptions may occur, fixed all bugs Irfan had in DB