Fixes some stuff in SalesDao