moving out inline js from db_designer.lib.php plus minor bug fixes

Fix: hide/show icon was invisible in left drop menu
Fix: Query visual builder, active options panel was going out of screen
Fix: Query visual builder, in active options panel, edit was not working
Signed-off-by: Smita Kumari <kumarismita62@gmail.com>