restored getlayer, for edit
progress on mysqli