[ADD] modified entry point so it uses env variables for connecting to db