Bugfix: Connect to db