SQLEngine load function implemented

Not tested though
Added an if statement to SqlEngine