update for the database query, changed data from char(256) to char(512)