adding id for database