To get null from database instead of empty strings you need to set up your DB connection as follows:
null