Removed bug caused sql database error under Linux