check dbfilename not port
auto type convertion
review and cleanup