Added path to database to gateway