Added javascript access to database