fixed some db_link problems
closing mysql connections
jquery .ready
fixed quadrat list update
fixing db links