DB PrimaryKeys generation methods changed