user dao implementation, relevant tests added