Started working on a possible enable database mode option

I really don't know what I'm doing here. I've never engaged in github code or php for that matter. I'm hoping that pressing the green button here doesn't send my changes to someone with more important things to do than review my blundering. I don't know how else to save this as I work.