Add mechanisms to save pid for minecraft server instance, add basic functionality for DB connectivity