cars.java:54: non-static variable model cannot be referenced from a static context
cars.java:55: non-static variable carMake cannot be referenced from a static context
posted 6 years ago
First of all learn standard Java naming conventions. Every text book or tutorial I've ever seen uses them, so don't make up your own. Class names should start with an upper case.
The variable belong to the "Car" class, not the static method. Move the DB code to the class and out of the main() method.