Fix main function, add call AddToDataBase