db: split returns in to NULL and non-NULL