fixed edit field
added db closing when idle
turned database into package, only performing module import on actually used databases, __init__ provides abstract interface