Fixed an erorr that was causing the sqlite database
to not load properly.