a SQL like database using javascript