Added file based port
Updated the way to connect to db