Added async library
Cleaned up existing code for indexed db