Untested fillmein replacement, could work.

Is probably very broken. Fixed most warnings, and had to add a few
custom sql methods.
Revert "Untested fillmein replacement, could work."

This reverts commit b303b6c135f5b53f680badc60fefd49dc239760a.
Commiting uncommited stuff that broke my github