logs - bug with first db connection