refactor formatString function
done stringFormat function
done function dbDisconnect
done query functions