Changed record ID handling, added CreatedAt, prepared for migration to PostgreSQL backend