Implemented database option choice logic ... now just need to figure out how to squeeze sqlite in there