simple SQL database written with javascript