 
             # Read DB
             $scope.db.find {}, (e, movies) ->
-                if e then console.error e
+                if e then console.error "DB", e
 
                 # Add existing movies to main grid
                 for movie in movies

                            .search filename
                            .then (data) ->

                                # Add filepath to db
                                stuff = data[0]
                                stuff.path = file.path

                                # Save data to DB
                                $scope.db.insert stuff, (e, item) ->
                                    if e then return console.error e

                                    # Add data to main grid
                                    $scope.add_movie stuff

                            .catch (e) ->
                                console.error e

                    .catch (e) ->
                        console.warn e


        ###*

         # @param {Object} movie
        ###
        $scope.open_movie = (movie) ->
            $rootScope.selected = movie


        ###*
