query database right away with connection and delete useless npm libraries