I know Michiel's method is definitely the best one, generally, but maybe in this instance the timing is wrong. Things in /etc/e-smith/events/local happen early in the boot cycle, whereas things in rc.local happen at the end.
If the database isn't ready for your command until sometime after /etc/e-smith/events/local is run, then that would explain the hang.
Regards,
Tom