I assume this is because my database is empty at the time of initialization. But everything i read online says this is how you are suppose to do it. I can make blank objects and then edit them later but that kind of defeats the purpose of it.
Ive attached my code as well. I hope someone can help me.