bugfix db connection