added LLEN checks and extend DB keys check