Implemented MyDB input and output.