fixed bug when the db schema name returned an emtpy string

style fixes