api: database: support js execute