Bug fix for created_at in db models