Changed invalid methods to return NULL instead of FALSE, added insert_batch