verify if car is already in the database before try to insert it and PEP8 fixes