Fix __init__ to move in mlbdb variable. Fix two db functions.