LAPICALL CloseDatabase( LDB db);

Closes the database. After calling this function, db is invalid and should not be used any more.