fixed empty string storage in db