found bug. did more work than i had to :(

change db to its own layer again. minor connection issue