Maria db

This resolves Issue #49. This also includes a few other helper scripts from other branches of mine. Please contact me if you want them isolated.