Javascript Database Manager