added secret column in DB and wrote tests