added id to database